package io.dcloud.h527baaa6.utils;

import io.reactivex.Flowable;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;

/**
 * Created by hunanqi on 2018/3/22 0022.
 */

public class NetWorkUtils {
    public static <T> Flowable<T> query(String privkry, Class<T> tClass) {
        Flowable<T> flowable1 = ReUtils.getFlowable("http://cdwhdb.cccicc.org.cn:8001/api/",privkry, tClass);
        Flowable<T> tFlowable = flowable1.subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread());
        return tFlowable;
    }
}
